#ifndef __VOICE_H__
#define __VOICE_H__

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "driver/uart.h"
#include "driver/gpio.h"

#define UART_NUM UART_NUM_1
#define UART_TXD_PIN (GPIO_NUM_17)
#define UART_RXD_PIN (GPIO_NUM_16)
#define UART_BUFFER_SIZE (1024)

// 声明全局变量
extern const uint8_t PrevFile[];
extern const uint8_t NextFile[];
extern const uint8_t Path[];

// 数组大小
size_t get_PrevFile_size(void);
size_t get_NextFile_size(void);
size_t get_Path_size(void);

// 函数声明
void voice_init_uart(void);
void send_data(const uint8_t* data, size_t len);

#endif // __VOICE_H__